package com.lagou.service.impl;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        String remoteHost = RpcContext.getContext().getRemoteHost();
        System.out.println(remoteHost);
        return "service-provider1:hello:"+name;
    }
}
